function getAgeByCertNo(certNo){
    var birthYear=certNo.substring(6,10);
    var date=new Date();
    var year=date.getFullYear();
    var age=year-birthYear;
    return age;
}
function getSexByCertNo(certNo){
    //12 12 12 1990 0101 123 1
    var valid=certNo.substring(16,17);
    if(valid%2 ==0)
        return "女";
    else
        return "男";
}